using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
using VOL.Core.Controllers.Basic;
using VOL.Entity.DomainModels;

namespace VOL.demo.Controllers
{
    public partial class producttypemodelController
    {
        /// <summary>
        /// 获取所有货品类型（级联结构）
        /// </summary>
        /// <returns></returns>
        [HttpGet, Route("GetCascadeList")]
        public async Task<IActionResult> GetCascadeList()
        {
            var result = await Service.GetCascadeListAsync();
            return Json(result);
        }
    }
}
